<template> 
  <Swiper class="detail_swiper">
    <SwiperItem v-for="item in topImages" :key="item">
      <img :src="item" @load="detailSImgLoad">
    </SwiperItem>
  </Swiper>
</template>

<script>
import {Swiper,SwiperItem} from "components/common/swiper";

export default {
  name: "DetailSwiper",
  props: {
    topImages: {
      type: Array,
      default(){
        return [];
      }
    }
  },
  components: {
    Swiper,
    SwiperItem,
  },
  methods: {
    detailSImgLoad(){
      this.$bus.$emit("detailSImgLoad");
      // console.log("test");
    }
  }
}
</script>

<style scoped>
  .detail_swiper{
    height: 200px;
  }
</style>